<meta name="locale" content="<%= I18n.locale %>">
<meta name="bluedoc-version" content="<%= BlueDoc::VERSION %>">
<meta name="viewport" content="width=device-width">
<% if current_user %>
<meta name="current-user" value="<%= current_user.slug %>">
<% end %>

<% if Rails.env.development? %>
<style type="text/css">
  .translation_missing { color: red !important; }
</style>
<% end %>

<%= stylesheet_pack_tag 'bluedoc', 'data-turbolinks-track': 'reload' %>
<%= stylesheet_pack_tag 'print', 'data-turbolinks-track': 'reload', media: "print" %>
<script type="text/javascript" src="<%= asset_path("/js/jquery@3.3.1.js", skip_pipeline: true) %>"></script>
<script type="text/javascript" src="<%= asset_path("/js/rails-ujs@5.2.1.js", skip_pipeline: true) %>"></script>
<script type="text/javascript" src="<%= asset_path("/js/turbolinks@5.2.0.js", skip_pipeline: true) %>"></script>
<script type="text/javascript" src="<%= asset_path("/js/react.production.min@16.6.1.js", skip_pipeline: true) %>"></script>
<script type="text/javascript" src="<%= asset_path("/js/react-dom.production.min@16.6.1.js", skip_pipeline: true) %>"></script>
<script type="text/javascript" src="<%= asset_path("/js/react-dom-server.browser.production.min@16.6.1.js", skip_pipeline: true) %>"></script>
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
<script type="text/javascript">
<% if current_user %>
App.currentUser = {
  id: <%= current_user.id %>,
  slug: "<%= current_user.slug %>",
  name: "<%= current_user.name %>",
  avatarUrl: "<%= current_user.avatar_url %>",
}
<% end %>
App.allowReactions = <%= raw Reaction.allow_reactions.to_json(only: %i[name], methods: %i[url]) %>
</script>
